package com.baibang.baibang815.controller;

import com.baibang.baibang815.domain.Review;
import com.baibang.baibang815.service.ReviewService;
import com.baibang.baibang815.util.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/review")
@Api(tags = "评论管理")
public class ReviewController {

    @Autowired
    private ReviewService reviewService;
    // 白帮 0815
    @GetMapping("/getReviewListAll")
    @ApiOperation(value = "获取评论列表")
    public AjaxResult getReviewListAll() {
        // 白帮 0815
        return AjaxResult.success(reviewService.selectAll());
    }


}